LinearInterp Interface

public interface LinearInterp

Module Procedures

private function LinearInterpFloatFloat(x1, x2, y1, y2, x) result(y)

calculates linear interpolation between real numbers.

Arguments

Type IntentOptional Attributes Name
real(kind=float), intent(in) :: x1
real(kind=float), intent(in) :: x2
real(kind=float), intent(in) :: y1
real(kind=float), intent(in) :: y2
real(kind=float), intent(in) :: x

Return Value real(kind=float)

private function LinearInterpFloatDouble(x1, x2, y1, y2, x) result(y)

calculates linear interpolation between real numbers. Output is a double real

Arguments

Type IntentOptional Attributes Name
real(kind=float), intent(in) :: x1
real(kind=float), intent(in) :: x2
real(kind=double), intent(in) :: y1
real(kind=double), intent(in) :: y2
real(kind=float), intent(in) :: x

Return Value real(kind=double)

private function LinearInterpIntFloat(x1, x2, y1, y2, x) result(y)

calculates linear interpolation between integer numbers with output real.

Arguments

Type IntentOptional Attributes Name
integer, intent(in) :: x1
integer, intent(in) :: x2
real(kind=float), intent(in) :: y1
real(kind=float), intent(in) :: y2
integer, intent(in) :: x

Return Value real(kind=float)